package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the SP_BO.TB_SP_BO_sr_adm_prstn table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="SP_BO.TB_SP_BO_sr_adm_prstn"
 */

public abstract class BasetbSpBoSRAdmPrstn  implements Serializable {

	public static String REF = "tbSpBoSRAdmPrstn";
	public static String PROP_cs_adm_prstn = "csAdmPrstn";
	public static String PROP_CS_PRESENTATION = "csPresentation";
	public static String PROP_CODE_CIP = "codeCip";
	public static String PROP_MARCHE = "marche";
	public static String PROP_CODE_COULEUR = "codeCouleur";
	public static String PROP_DATE_MAJ = "dateMaj";
	public static String PROP_ORIGINE = "origine";
	public static String PROP_cs_adm_rgpt = "csAdmRgpt";
	public static String PROP_FLAG_AFFICH = "flagAffich";
	public static String PROP_MAJ_USER = "majUser";
	public static String PROP_PRESENTATION = "presentation";
	public static String PROP_cs_adm_pdt = "csAdmPdt";
	public static String PROP_CS_PROD_HIER = "csProdHier";


	// constructors
	public BasetbSpBoSRAdmPrstn () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasetbSpBoSRAdmPrstn (java.lang.Integer csAdmPrstn) {
		this.setcsAdmPrstn(csAdmPrstn);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer csAdmPrstn;

	// fields
	private java.lang.Integer csAdmRgpt;
	private java.lang.Integer csAdmPdt;
	private java.lang.Integer csPresentation;
	private java.lang.String presentation;
	private java.lang.String codeCip;
	private java.lang.Integer csProdHier;
	private java.lang.String marche;
	private java.lang.String origine;
	private java.lang.String codeCouleur;
	private java.lang.String flagAffich;
	private java.lang.String majUser;
	private java.util.Date dateMaj;

	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="cs_adm_prstn"
     */
	public java.lang.Integer getcsAdmPrstn () {
		return csAdmPrstn;
	}

	/**
	 * Set the unique identifier of this class
	 * @param csAdmPrstn the new ID
	 */
	public void setcsAdmPrstn (java.lang.Integer csAdmPrstn) {
		this.csAdmPrstn = csAdmPrstn;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: cs_adm_rgpt
	 */
	public java.lang.Integer getcsAdmRgpt () {
		return csAdmRgpt;
	}

	/**
	 * Set the value related to the column: cs_adm_rgpt
	 * @param csAdmRgpt the cs_adm_rgpt value
	 */
	public void setcsAdmRgpt (java.lang.Integer csAdmRgpt) {
		this.csAdmRgpt = csAdmRgpt;
	}



	/**
	 * Return the value associated with the column: cs_adm_pdt
	 */
	public java.lang.Integer getcsAdmPdt () {
		return csAdmPdt;
	}

	/**
	 * Set the value related to the column: cs_adm_pdt
	 * @param csAdmPdt the cs_adm_pdt value
	 */
	public void setcsAdmPdt (java.lang.Integer csAdmPdt) {
		this.csAdmPdt = csAdmPdt;
	}



	/**
	 * Return the value associated with the column: CS_PRESENTATION
	 */
	public java.lang.Integer getCsPresentation () {
		return csPresentation;
	}

	/**
	 * Set the value related to the column: CS_PRESENTATION
	 * @param csPresentation the CS_PRESENTATION value
	 */
	public void setCsPresentation (java.lang.Integer csPresentation) {
		this.csPresentation = csPresentation;
	}



	/**
	 * Return the value associated with the column: PRESENTATION
	 */
	public java.lang.String getPresentation () {
		return presentation;
	}

	/**
	 * Set the value related to the column: PRESENTATION
	 * @param presentation the PRESENTATION value
	 */
	public void setPresentation (java.lang.String presentation) {
		this.presentation = presentation;
	}



	/**
	 * Return the value associated with the column: CODE_CIP
	 */
	public java.lang.String getCodeCip () {
		return codeCip;
	}

	/**
	 * Set the value related to the column: CODE_CIP
	 * @param codeCip the CODE_CIP value
	 */
	public void setCodeCip (java.lang.String codeCip) {
		this.codeCip = codeCip;
	}



	/**
	 * Return the value associated with the column: CS_PROD_HIER
	 */
	public java.lang.Integer getCsProdHier () {
		return csProdHier;
	}

	/**
	 * Set the value related to the column: CS_PROD_HIER
	 * @param csProdHier the CS_PROD_HIER value
	 */
	public void setCsProdHier (java.lang.Integer csProdHier) {
		this.csProdHier = csProdHier;
	}



	/**
	 * Return the value associated with the column: MARCHE
	 */
	public java.lang.String getMarche () {
		return marche;
	}

	/**
	 * Set the value related to the column: MARCHE
	 * @param marche the MARCHE value
	 */
	public void setMarche (java.lang.String marche) {
		this.marche = marche;
	}



	/**
	 * Return the value associated with the column: ORIGINE
	 */
	public java.lang.String getOrigine () {
		return origine;
	}

	/**
	 * Set the value related to the column: ORIGINE
	 * @param origine the ORIGINE value
	 */
	public void setOrigine (java.lang.String origine) {
		this.origine = origine;
	}



	/**
	 * Return the value associated with the column: CODE_COULEUR
	 */
	public java.lang.String getCodeCouleur () {
		return codeCouleur;
	}

	/**
	 * Set the value related to the column: CODE_COULEUR
	 * @param codeCouleur the CODE_COULEUR value
	 */
	public void setCodeCouleur (java.lang.String codeCouleur) {
		this.codeCouleur = codeCouleur;
	}



	/**
	 * Return the value associated with the column: FLAG_AFFICH
	 */
	public java.lang.String getFlagAffich () {
		return flagAffich;
	}

	/**
	 * Set the value related to the column: FLAG_AFFICH
	 * @param flagAffich the FLAG_AFFICH value
	 */
	public void setFlagAffich (java.lang.String flagAffich) {
		this.flagAffich = flagAffich;
	}



	/**
	 * Return the value associated with the column: MAJ_USER
	 */
	public java.lang.String getMajUser () {
		return majUser;
	}

	/**
	 * Set the value related to the column: MAJ_USER
	 * @param majUser the MAJ_USER value
	 */
	public void setMajUser (java.lang.String majUser) {
		this.majUser = majUser;
	}



	/**
	 * Return the value associated with the column: D_MAJ
	 */
	public java.util.Date getDateMaj () {
		return dateMaj;
	}

	/**
	 * Set the value related to the column: D_MAJ
	 * @param dateMaj the D_MAJ value
	 */
	public void setDateMaj (java.util.Date dateMaj) {
		this.dateMaj = dateMaj;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPrstn)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPrstn tbSpBoSRAdmPrstn = (com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPrstn) obj;
			if (null == this.getcsAdmPrstn() || null == tbSpBoSRAdmPrstn.getcsAdmPrstn()) return false;
			else return (this.getcsAdmPrstn().equals(tbSpBoSRAdmPrstn.getcsAdmPrstn()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getcsAdmPrstn()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getcsAdmPrstn().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}